feat(tui): add searchable skills command#90
Closed
Fengzdadi wants to merge 1 commit into
Closed
Conversation
🦋 Changeset detectedLatest commit: 7eb2b24 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Collaborator
|
Thank you for your interest in contributing to Kimi Code. For new features, please create an issue or discuss it in an existing issue. We are not currently accepting pull requests for new features. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Refs #60
Problem
Kimi Code currently exposes skill-derived slash commands, but there is no dedicated way in the TUI to inspect the skills loaded for the current session. Users need a focused view to discover loaded skills, understand where they came from, and quickly find the one they want to invoke.
This PR intentionally keeps the first version small. It does not add explicit slash alias rows to the skills view, because command invocation remains covered by slash completion and the
/skill:<name>namespace. It also leaves skill enable/disable state and estimated token cost as reviewer-discussion items, since the current session API only returns loaded/effective skills.What changed
/skillsbuilt-in slash command that loads skills from the current session./skill:<name>into the editor when a skill is selected, instead of immediately executing it, so users can append extra instructions before submitting./skillsin both English and Chinese slash-command reference pages.@moonshot-ai/kimi-code.Reviewer notes
pathvisible because it is useful for debugging project/user/built-in loading. Please consider whether this is too verbose for the default view.Checklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.Validation
pnpm --filter @moonshot-ai/kimi-code exec vitest run test/tui/components/messages/skills-panel.test.ts test/tui/commands/registry.test.ts test/tui/kimi-tui-message-flow.test.ts --reporter=dotpnpm --filter @moonshot-ai/kimi-code run typecheckpnpm -C apps/kimi-code run buildpnpm -C apps/kimi-code exec oxlint src/tui/kimi-tui.ts src/tui/components/messages/skills-panel.ts test/tui/kimi-tui-message-flow.test.ts test/tui/components/messages/skills-panel.test.ts